$(function(){
  var mySwiper = new Swiper('.banner', {
           // direction: 'vertical',
           // loop: true,
           slidesPerView:4,
           pagination : '.swiper-pagination',
          paginationClickable :true,
          });
  var mSwiper = new Swiper('.box', {
           // direction: 'vertical',
           // loop: true,
           slidesPerView:2.5,
           pagination : '.swiper-pagination',
          paginationClickable :true,
          });
   var mSwiper = new Swiper('.red', {
           // direction: 'vertical',
           // loop: true,
           slidesPerView:2.5,
           pagination : '.swiper-pagination',
          paginationClickable :true,
          });
    $.ajax({
        type:"GET",
        url:"../json/discover.json",
        async:true,
        success:function(res){
          // console.log(res)
          var str = template('list_caidan',{tuo:res});
          $('.tuo').html(str);

        }
          });

   $.ajax({
        type:"GET",
        url:"../json/disco.json",
        async:true,
        success:function(res){
          // console.log(res)
          var str = template('swep',{swp:res});
          $('.swp').html(str);

        }
          });
})